﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200078F RID: 1935
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetPhoneDataScRsp : IMessage<GetPhoneDataScRsp>, IMessage, IEquatable<GetPhoneDataScRsp>, IDeepCloneable<GetPhoneDataScRsp>, IBufferMessage
	{
		// Token: 0x170018B4 RID: 6324
		// (get) Token: 0x060056F0 RID: 22256 RVA: 0x000EAD2B File Offset: 0x000E8F2B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetPhoneDataScRsp> Parser
		{
			get
			{
				return GetPhoneDataScRsp._parser;
			}
		}

		// Token: 0x170018B5 RID: 6325
		// (get) Token: 0x060056F1 RID: 22257 RVA: 0x000EAD32 File Offset: 0x000E8F32
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetPhoneDataScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170018B6 RID: 6326
		// (get) Token: 0x060056F2 RID: 22258 RVA: 0x000EAD44 File Offset: 0x000E8F44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetPhoneDataScRsp.Descriptor;
			}
		}

		// Token: 0x060056F3 RID: 22259 RVA: 0x000EAD4B File Offset: 0x000E8F4B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetPhoneDataScRsp()
		{
		}

		// Token: 0x060056F4 RID: 22260 RVA: 0x000EAD6C File Offset: 0x000E8F6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetPhoneDataScRsp(GetPhoneDataScRsp other) : this()
		{
			this.curChatBubble_ = other.curChatBubble_;
			this.ownedPhoneThemes_ = other.ownedPhoneThemes_.Clone();
			this.curPhoneTheme_ = other.curPhoneTheme_;
			this.retcode_ = other.retcode_;
			this.ownedChatBubbles_ = other.ownedChatBubbles_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060056F5 RID: 22261 RVA: 0x000EADD6 File Offset: 0x000E8FD6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetPhoneDataScRsp Clone()
		{
			return new GetPhoneDataScRsp(this);
		}

		// Token: 0x170018B7 RID: 6327
		// (get) Token: 0x060056F6 RID: 22262 RVA: 0x000EADDE File Offset: 0x000E8FDE
		// (set) Token: 0x060056F7 RID: 22263 RVA: 0x000EADE6 File Offset: 0x000E8FE6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CurChatBubble
		{
			get
			{
				return this.curChatBubble_;
			}
			set
			{
				this.curChatBubble_ = value;
			}
		}

		// Token: 0x170018B8 RID: 6328
		// (get) Token: 0x060056F8 RID: 22264 RVA: 0x000EADEF File Offset: 0x000E8FEF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> OwnedPhoneThemes
		{
			get
			{
				return this.ownedPhoneThemes_;
			}
		}

		// Token: 0x170018B9 RID: 6329
		// (get) Token: 0x060056F9 RID: 22265 RVA: 0x000EADF7 File Offset: 0x000E8FF7
		// (set) Token: 0x060056FA RID: 22266 RVA: 0x000EADFF File Offset: 0x000E8FFF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CurPhoneTheme
		{
			get
			{
				return this.curPhoneTheme_;
			}
			set
			{
				this.curPhoneTheme_ = value;
			}
		}

		// Token: 0x170018BA RID: 6330
		// (get) Token: 0x060056FB RID: 22267 RVA: 0x000EAE08 File Offset: 0x000E9008
		// (set) Token: 0x060056FC RID: 22268 RVA: 0x000EAE10 File Offset: 0x000E9010
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170018BB RID: 6331
		// (get) Token: 0x060056FD RID: 22269 RVA: 0x000EAE19 File Offset: 0x000E9019
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> OwnedChatBubbles
		{
			get
			{
				return this.ownedChatBubbles_;
			}
		}

		// Token: 0x060056FE RID: 22270 RVA: 0x000EAE21 File Offset: 0x000E9021
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetPhoneDataScRsp);
		}

		// Token: 0x060056FF RID: 22271 RVA: 0x000EAE30 File Offset: 0x000E9030
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetPhoneDataScRsp other)
		{
			return other != null && (other == this || (this.CurChatBubble == other.CurChatBubble && this.ownedPhoneThemes_.Equals(other.ownedPhoneThemes_) && this.CurPhoneTheme == other.CurPhoneTheme && this.Retcode == other.Retcode && this.ownedChatBubbles_.Equals(other.ownedChatBubbles_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06005700 RID: 22272 RVA: 0x000EAEB4 File Offset: 0x000E90B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.CurChatBubble != 0U)
			{
				num ^= this.CurChatBubble.GetHashCode();
			}
			num ^= this.ownedPhoneThemes_.GetHashCode();
			if (this.CurPhoneTheme != 0U)
			{
				num ^= this.CurPhoneTheme.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.ownedChatBubbles_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06005701 RID: 22273 RVA: 0x000EAF41 File Offset: 0x000E9141
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06005702 RID: 22274 RVA: 0x000EAF49 File Offset: 0x000E9149
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06005703 RID: 22275 RVA: 0x000EAF54 File Offset: 0x000E9154
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.ownedChatBubbles_.WriteTo(ref output, GetPhoneDataScRsp._repeated_ownedChatBubbles_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Retcode);
			}
			if (this.CurPhoneTheme != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.CurPhoneTheme);
			}
			this.ownedPhoneThemes_.WriteTo(ref output, GetPhoneDataScRsp._repeated_ownedPhoneThemes_codec);
			if (this.CurChatBubble != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.CurChatBubble);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06005704 RID: 22276 RVA: 0x000EAFEC File Offset: 0x000E91EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.CurChatBubble != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CurChatBubble);
			}
			num += this.ownedPhoneThemes_.CalculateSize(GetPhoneDataScRsp._repeated_ownedPhoneThemes_codec);
			if (this.CurPhoneTheme != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CurPhoneTheme);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.ownedChatBubbles_.CalculateSize(GetPhoneDataScRsp._repeated_ownedChatBubbles_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06005705 RID: 22277 RVA: 0x000EB080 File Offset: 0x000E9280
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetPhoneDataScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.CurChatBubble != 0U)
			{
				this.CurChatBubble = other.CurChatBubble;
			}
			this.ownedPhoneThemes_.Add(other.ownedPhoneThemes_);
			if (other.CurPhoneTheme != 0U)
			{
				this.CurPhoneTheme = other.CurPhoneTheme;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.ownedChatBubbles_.Add(other.ownedChatBubbles_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06005706 RID: 22278 RVA: 0x000EB106 File Offset: 0x000E9306
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06005707 RID: 22279 RVA: 0x000EB110 File Offset: 0x000E9310
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num > 32U)
				{
					if (num <= 64U)
					{
						if (num == 48U)
						{
							this.CurPhoneTheme = input.ReadUInt32();
							continue;
						}
						if (num != 64U)
						{
							goto IL_35;
						}
					}
					else if (num != 66U)
					{
						if (num != 120U)
						{
							goto IL_35;
						}
						this.CurChatBubble = input.ReadUInt32();
						continue;
					}
					this.ownedPhoneThemes_.AddEntriesFrom(ref input, GetPhoneDataScRsp._repeated_ownedPhoneThemes_codec);
					continue;
				}
				if (num == 8U || num == 10U)
				{
					this.ownedChatBubbles_.AddEntriesFrom(ref input, GetPhoneDataScRsp._repeated_ownedChatBubbles_codec);
					continue;
				}
				if (num == 32U)
				{
					this.Retcode = input.ReadUInt32();
					continue;
				}
				IL_35:
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040021F2 RID: 8690
		private static readonly MessageParser<GetPhoneDataScRsp> _parser = new MessageParser<GetPhoneDataScRsp>(() => new GetPhoneDataScRsp());

		// Token: 0x040021F3 RID: 8691
		private UnknownFieldSet _unknownFields;

		// Token: 0x040021F4 RID: 8692
		public const int CurChatBubbleFieldNumber = 15;

		// Token: 0x040021F5 RID: 8693
		private uint curChatBubble_;

		// Token: 0x040021F6 RID: 8694
		public const int OwnedPhoneThemesFieldNumber = 8;

		// Token: 0x040021F7 RID: 8695
		private static readonly FieldCodec<uint> _repeated_ownedPhoneThemes_codec = FieldCodec.ForUInt32(66U);

		// Token: 0x040021F8 RID: 8696
		private readonly RepeatedField<uint> ownedPhoneThemes_ = new RepeatedField<uint>();

		// Token: 0x040021F9 RID: 8697
		public const int CurPhoneThemeFieldNumber = 6;

		// Token: 0x040021FA RID: 8698
		private uint curPhoneTheme_;

		// Token: 0x040021FB RID: 8699
		public const int RetcodeFieldNumber = 4;

		// Token: 0x040021FC RID: 8700
		private uint retcode_;

		// Token: 0x040021FD RID: 8701
		public const int OwnedChatBubblesFieldNumber = 1;

		// Token: 0x040021FE RID: 8702
		private static readonly FieldCodec<uint> _repeated_ownedChatBubbles_codec = FieldCodec.ForUInt32(10U);

		// Token: 0x040021FF RID: 8703
		private readonly RepeatedField<uint> ownedChatBubbles_ = new RepeatedField<uint>();
	}
}
